import time
from selenium import webdriver
import os

options = webdriver.ChromeOptions()
options.add_argument("--window-size=1920,1080")
driver = webdriver.Chrome(options=options)
driver.get("https://demoqa.com/upload-download")

UPLOAD_FIELD = ("id", "uploadFile")
UPLOADED_FILE_PATH = ("id", "uploadedFilePath")
PATH = os.path.join(os.getcwd(), "task_1", "images.png")

driver.find_element(*UPLOAD_FIELD).send_keys(PATH)
time.sleep(3)

assert driver.find_element(*UPLOADED_FILE_PATH).text == f"C:\\fakepath\\images.png"

